﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Supplier_DichVu.aspx.cs" Inherits="Booking_Hotel.Supplier_DichVu" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        
        <table class="style1">
        <tr>
                <td class="style2">
                    Tên khách sạn:</td>
                <td>
                    <asp:DropDownList ID="DDL_TenKhachSan" runat="server" AutoPostBack="True" 
                        DataSourceID="SqlDataSource1" DataTextField="TenKhachSan" 
                        DataValueField="Supplier_HotelID" Width="350px">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ttewjkqv_webdemo23ConnectionString %>" 
                        SelectCommand="sp_GetHotelFormDichVu" SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:SessionParameter Name="supplierID" SessionField="ss_SupplierID" 
                                Type="Int32" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Tên dịch vụ:</td>
                <td>
                    <asp:TextBox ID="txt_TenDichVu" runat="server" Width="350px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Giải thích thêm:</td>
                <td>
                    <asp:TextBox ID="txt_Desciption" runat="server" Height="100px" 
                        TextMode="MultiLine" Width="350px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Giá dich vụ</td>
                <td>
                    <asp:TextBox ID="txt_GiaDichVu" runat="server" Width="350px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2" colspan="2">
                    <asp:Button ID="Bt_Insert" runat="server" Text="Thêm Mới" 
                        onclick="Bt_Insert_Click" />
                    <asp:Button ID="Bt_CapNhat" runat="server" Text="Cập Nhật" 
                        onclick="Bt_CapNhat_Click" />
                </td>
            </tr>
        </table>
        
    </div>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" ForeColor="#333333" GridLines="None" 
        onselectedindexchanging="GridView1_SelectedIndexChanging">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="Supplier_Hotel_DichVuID" HeaderText="DichVuID" 
                ReadOnly="True" SortExpression="Supplier_Hotel_DichVuID" />
            <asp:BoundField DataField="Supplier_HotelID" HeaderText="Supplier_HotelID" />
            <asp:BoundField DataField="TenKhachSan" HeaderText="TenKhachSan" />
            <asp:BoundField DataField="TenDichVu" HeaderText="TenDichVu" ReadOnly="True" 
                SortExpression="TenDichVu" />
            <asp:BoundField DataField="Description" HeaderText="Description" 
                ReadOnly="True" SortExpression="Description" />
            <asp:BoundField DataField="GiaDichVu" HeaderText="GiaDichVu" ReadOnly="True" 
                SortExpression="GiaDichVu" />
            <asp:TemplateField HeaderText="Control">
                <ItemTemplate>
                    <table>
                        <tr align="center">
                            <td>
                                <asp:ImageButton ID="ImageButton1" runat="server"
                                    ImageUrl="~/Images/delete.gif" 
                                    OnClientClick="return confirm('Bạn có chắc chắn xóa Suppier này không?');" 
                                    CommandName="Select" onclick="ImageButton1_Click" />
                            </td>
                            <td>
                                <asp:ImageButton ID="ImageButton2" runat="server" CommandName="Select" 
                                    ImageUrl="~/Images/edit.gif" />
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    </form>
</body>
</html>
